﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database">                   
    
    <object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
        <property name="ConfigSections" value="databaseSettings"/>
    </object>
    
    <db:provider id="DbProvider"
                     provider="SqlServer-2.0"
                     connectionString="Data Source=.;Database=Visuagile;Integrated Security=false;User ID=hms;Password=password@123"/>
                     
    <object id="NHibernateSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate20">
        <property name="DbProvider" ref="DbProvider"/>
        <property name="MappingAssemblies">
            <list>
                <value>VisualAgile.Model</value>
            </list>
        </property>
        <property name="HibernateProperties">
            <dictionary>
                <entry key="hibernate.connection.provider"
                       value="NHibernate.Connection.DriverConnectionProvider"/>
                <entry key="dialect"
                       value="NHibernate.Dialect.MsSql2000Dialect"/>
                <entry key="hibernate.connection.driver_class"
                       value="NHibernate.Driver.SqlClientDriver"/>

            </dictionary>
        </property>
        <property name="ExposeTransactionAwareSessionFactory" value="true" />
    </object>
   
    <object id="HibernateTemplate" type="Spring.Data.NHibernate.HibernateTemplate">
        <property name="SessionFactory" ref="NHibernateSessionFactory" />
        <property name="TemplateFlushMode" value="Auto" />
        <property name="CacheQueries" value="true" />
    </object>

    <object id="UserDao" type="VisualAgile.DAL.UserDao, VisualAgile.DAL">
        <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="ProjectDao" type="VisualAgile.DAL.ProjectDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="RoleDao" type="VisualAgile.DAL.RoleDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="ReleaseDao" type="VisualAgile.DAL.ReleaseDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="IterationDao" type="VisualAgile.DAL.IterationDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="StatusDao" type="VisualAgile.DAL.StatusDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="FeatureDao" type="VisualAgile.DAL.FeatureDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="FeelingsDao" type="VisualAgile.DAL.FeelingsDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="ActualsDao" type="VisualAgile.DAL.ActualsDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

    <object id="LabelDao" type="VisualAgile.DAL.LabelDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>

   <object id="StoryDao" type="VisualAgile.DAL.StoryDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>
  
    <object id="TaskDao" type="VisualAgile.DAL.TaskDao, VisualAgile.DAL">
      <property name="HibernateTemplate" ref="HibernateTemplate"/>
    </object>    
   
</objects>

